﻿@model NUS.ISS.ARS.BusinessEntity.ViewModels.FlightScheduleView

@{
    ViewBag.Title = "FlightSchedule Edit";
    var Error3 =ViewData["Error3"];
    var Error4 = ViewData["Error4"];
}
    <h3>@Error3</h3>
    <h3>@Error4</h3>

<h2>Edit</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Flight Schedule</legend>
      @Html.HiddenFor(model => model.FlightScheduleId)
      @Html.HiddenFor(model => model.isDeleted)
        <div class="editor-label">
            @Html.LabelFor(model => model.FlightNumber)
        </div>
        <div class="editor-field">
             
            @Html.EditorFor(model => model.FlightNumber)
            @Html.ValidationMessageFor(model => model.FlightNumber)
        </div>
        <div class="editor-label">
           @Html.LabelFor(model => model.FromAirport)
        </div>
        <div class="editor-label">
            @Html.DropDownList("fromairportid", null, null, new { @class = "mystyleclass" })

        </div>
        <div class="editor-label">
           @Html.LabelFor(model => model.ToAirport)
        </div>
        <div class="editor-label">
            @Html.DropDownList("toairportid", null, null, new { @class = "mystyleclass" })

        </div>     
        <div class="editor-label">
            @Html.LabelFor(model => model.DepartureTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DepartureTime)
            @Html.ValidationMessageFor(model => model.DepartureTime)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ArrivalTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ArrivalTime)
            @Html.ValidationMessageFor(model => model.ArrivalTime)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.AdultFare)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AdultFare)
           @Html.ValidationMessageFor(model => model.AdultFare)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.ChildFare)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ChildFare)
            @Html.ValidationMessageFor(model => model.ChildFare)
        </div>
        <div class="editor-label">
           @Html.LabelFor(model => model.InfantFare)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.InfantFare)
            @Html.ValidationMessageFor(model => model.InfantFare)
        </div>
        <div class="editor-label">
           @Html.LabelFor(model => model.AirplaneModel)
        </div>
        <div class="editor-label">
            @Html.DropDownList("airplaneid", null, null, new { @class = "mystyleclass" })
        </div>
        <p>
            <input type="submit" value="Submit" />
        </p>
    </fieldset>

<div>
    @Html.ActionLink("Back to List", "FlightSchedule")
</div>
}

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
